package com.ljx.controller;




import com.ljx.service.StockServiceImpl_redisson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/12/8 15:13
 * @Version 1.0
 */
@RestController
public class StockController {
	@Autowired
	private StockServiceImpl_redisson stockService;

	@GetMapping("/decr/{productid}")
	public String decrement(@PathVariable Integer productid){
		return stockService.decrement(productid);
	}
}
